package com.itheima.springbootmybatis.service;

import com.itheima.springbootmybatis.pojo.FruitVegetables;
import com.itheima.springbootmybatis.pojo.PageBean;

public interface ArticleService {
    //新增商品
    void add(FruitVegetables fruitVegetables);

    //条件分页列表查询
    PageBean<FruitVegetables> list(Integer pageNum, Integer pageSize,String origin, String fruitName);

    //根据id查询商品详情
    FruitVegetables findById(Integer id);

    //更新商品
    String update(FruitVegetables fruitVegetables);

    //删除商品
    String deleteById(Integer id);
}
